package com.guldan.core.dubbo.client;

import java.io.Serializable;

/**
 * Created by Silas.
 * Date: 2016/11/11
 * Time: 17:15
 */
public class ResponseDTO<T> implements Serializable {
    private static final long serialVersionUID = 4082846602141879024L;
    private boolean status = true;
    private String msg;
    private Exception exception;
    private String errorCode;
    private T data;

    public ResponseDTO() {
    }

    public boolean isSuccess() {
        return this.status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return this.data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Exception getException() {
        return this.exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
}
